#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class A
{
public:
	A()
	{
		_scount++;
	}
	~A()
	{
		_scount--;
	}
	static int GetAscount()
	{
		return _scount;
	}
private:
	static int _scount;
};
int A::_scount = 0;
int main()
{
	//cout << A::_scount << endl;
	A a1, a2;
	A a3(a1);
	cout << A::GetAscount() << endl;
	cout << a1.GetAscount() << endl;
	
	cout << a3.GetAscount() << endl;
	return 0;
}